import { HttpSrv } from 'lfun-bg-comp';
import { PageParams, PageResult, Result } from '..';

export interface RetireSearchParams {
  teacher_name?: string;
  teacher_gender?: string;
  teacher_id_number?: string;
  highest_education?: string;
  political_status?: string;
  in_post?: string;
  enter_school_time?: string;
  non_employment_time?: string;
}

export interface RetireRes {
  teacher_name?: string;
  teacher_gender?: string;
  teacher_id_number?: string;
  highest_education?: string;
  political_status?: string;
  in_post?: string;
  enter_school_time?: string;
  non_employment_time?: string;
}

export const listRetire = (params: RetireSearchParams & PageParams): Result<PageResult<RetireRes>> =>
  HttpSrv().get('/school/v1/teacher-transaction/teacher-retire', { params });
